<template>
  <div class="container-wrap">
    <div class="container-y">
      <template-items
        v-if="submitList"
        v-for="(item,index) in submitList"
        :key="index"
        :title="item.title"
        :list="item.list">
      </template-items>
      <div class="d-item-wrap">
        <div class="d-title">
          报告要求
        </div>
        <div class="d-content">
          <div class="item">
            <div class="label">
              <div class="neededFlag"></div>
              反馈项
              <span class="plus-txt-wrap" @click="goConfig">
              添加
            </span>
            </div>
            <div class="txt txt-checked-item-wrap">
              <div class="txt-checked-item"
                   v-for="(item,index) in $store.state.feedBackItemCheck"
                   :key="index"
                   @click="_deleteConfig(index)">
                {{item.title}}
              </div>
            </div>
          </div>
          <div class="item inline-wrap">
            <div class="label">
              <div class="neededFlag"></div>
              发布单位
            </div>
            <div class="txt">
              <input class="input-c"
                     @click="goOrgList(1)"
                     readonly
                     value="请选择发布单位 > "
                     type="text"
                     placeholder="点击输入文字">
            </div>
          </div>
          <div class="item">
            <div class="label">
              <div class="neededFlag"></div>
              报告要求
            </div>
            <div class="txt">
            <textarea id="require"
                      class="txt-area"
                      placeholder="点击输入文字">
            </textarea>
            </div>
          </div>
        </div>
      </div>
      <div class="btn-wrap">
        <div class="btn-b" @click="submitPlan">发布</div>
      </div>
      <div class="pdb"></div>
    </div>
    <transition name="slideRight">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script>
  import planAdd from "./planAdd.js"

  export default planAdd
</script>
